package is.ru.honn.rupin.data;

import is.ru.honn.rupin.domain.Board;
import is.ru.honn.rupin.domain.Gender;
import is.ru.honn.rupin.domain.User;
import org.springframework.jdbc.core.simple.ParameterizedRowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by Sigrún Inga Kristinsdóttir.
 * Date: 19.10.2012
 * Time: 16:09
 * copyright (c) sigruninga&susanne
 *
 * @author Sigrún Inga kristindóttir og Susanne Götz
 * @version 1.1
 */

/**
 * Mapper sem er notaður í BoardData. Nær í rétt gildi úr töflunni.
 */
public class BoardRowMapper implements ParameterizedRowMapper<Board>
{
    public Board mapRow(ResultSet resultSet, int i) throws SQLException
    {
        Board board = new Board(resultSet.getString("boardname"),
          resultSet.getString("category"));

        return board;
    }
}
